package com.syslet.view;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.widget.SlidingDrawer;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

import com.syslet.combinationcloud.R;
import com.syslet.wrappingAPI.Class_DropboxAPI;

public class MainActivity extends Activity {
	public Class_DropboxAPI m_dropboxAPI;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
    	
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.activity_main);
        setContentView(R.layout.tab);
        
        
        TabHost tabhost = (TabHost)findViewById(R.id.mytabhost);
        tabhost.setup();
        
        TabSpec spec = tabhost.newTabSpec("Tab1");
        
        Class_DropboxTabSpec dropboxSpec = new Class_DropboxTabSpec(tabhost);
        Class_GoogleDriveTabSpec googleDriveSpec = new Class_GoogleDriveTabSpec(tabhost);
        Class_UCloudTabSpec uCloudSpec = new Class_UCloudTabSpec(tabhost);
        Class_OptionTabSpec optionspec = new Class_OptionTabSpec(tabhost);
        
        
        m_dropboxAPI = new Class_DropboxAPI(this);
       // m_dropboxAPI.APIGetShowList("/");
        m_dropboxAPI.APIUpload("/", "/");
        
        //m_dropboxAPI.APIDownload("", "");
        //m_dropboxAPI.APIUpload("", "");
        
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
    
    @Override
    protected void onResume() {
    	super.onResume();
    	Log.v("pang", "OnResume : MainActivity");
    	
    	m_dropboxAPI.APIResume();
    }
}
